package cn.huapu.power.energy.service.impl;

import cn.huapu.power.energy.bean.Transformerworkdatat;
import cn.huapu.power.energy.bean.bo.DateParameterBo;
import cn.huapu.power.energy.bean.vo.*;
import cn.huapu.power.energy.mapper.TransformerworkdatatMapper;
import cn.huapu.power.energy.service.TransformerworkdatatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 测试用户权限服务实现类
 * @author autogen
 *
 */
@Service
public class TransformerworkdatatServiceImpl extends BaseServiceImpl<TransformerworkdatatMapper, Transformerworkdatat,Integer> implements TransformerworkdatatService {

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> traWholeLoad(DateParameterBo da) {
        List<TransformerworkdatatVo> transforList = mapper.traWholeLoad(da);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> traLoad(DateParameterBo da) {
        List<TransformerworkdatatVo> transforList = mapper.traLoad(da);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<PdfAndByq> getPdfAndByq(DateParameterBo da) {
        List<PdfAndByq> pdf = mapper.getPdfAndByq(da);
        return pdf;
    }

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> getTimePower(String year, String month, String day, String year1, String month1, String day1, String dstbtRoom, String transformer,String id) {
        List<TransformerworkdatatVo> transforList = mapper.getTimePower(year,month,day,year1,month1,day1,dstbtRoom,transformer,id);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> getTimePower95(DateParameterBo da) {
        List<TransformerworkdatatVo> transforList = mapper.getTimePower95(da);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> getRealLoadViwe(String year, String month, String day, String year1, String month1, String day1, String dstbtRoom, String transformer, String id) {
        List<TransformerworkdatatVo> transforList = mapper.getRealLoadViwe(year,month,day,year1,month1,day1,dstbtRoom,transformer,id);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<ElectFormVo> getDifferValue(String year, String month, String day, String year1, String month1, String day1, String dstbtRoom, String transformer, String id) {
        List<ElectFormVo> transforList = mapper.getDifferValue(year,month,day,year1,month1,day1,dstbtRoom,transformer,id);
        return transforList;
    }

    @Override
    @Transactional(readOnly = true)
    public List<Transformerworkdatat1Vo> getLoadRate(DateParameterBo da) {
        List<Transformerworkdatat1Vo> tdatatVo = mapper.getLoadRate(da);
        return tdatatVo;
    }

    @Override
    @Transactional(readOnly = true)
    public Transformerworkdatat getFz(DateParameterBo da) {
        Transformerworkdatat trdatat = mapper.getFz(da);
        return trdatat;
    }

    @Override
    @Transactional(readOnly = true)
    public List<PeaPeakvalleyunblnccfcntVo> getZhGv(DateParameterBo da) {
        List<PeaPeakvalleyunblnccfcntVo> tr = mapper.getZhGv(da);
        return tr;
    }

    @Override
    @Transactional(readOnly = true)
    public List<TransformerworkdatatVo> getFzAndRz(DateParameterBo da) {
        List<TransformerworkdatatVo> transforList = mapper.getFzAndRz(da);
        return transforList;
    }
}
